import java.math.BigDecimal;:@项目类型web:@核心框架springboot:@模块po:@技术框架mybatis-Plus
package com.ybkj.takeout.ams.entity;

import java.time.LocalDateTime;
import cn.changeforyou.utils.cons.DateTimeUtils;
import com.alibaba.fastjson.JSONObject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import org.apache.ibatis.type.LocalDateTimeTypeHandler;
import org.springframework.format.annotation.DateTimeFormat;

import com.ybkj.takeout.core.SuperModel;

/**
 * PlatformActivity对象
 * @author xwy
 * @since 2020-12-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName(value = "ams_activity_platform", autoResultMap = true)
@ApiModel(value="PlatformActivity对象", description="平台活动表")
public class PlatformActivity extends SuperModel<PlatformActivity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "活动中文名字")
    private String name;

    @ApiModelProperty(value = "复杂参数, 比如满减活动不会只有一个参数, 就放在这里")
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject complexParam;
    
    
    @JsonFormat(pattern = DateTimeUtils.DATE_TIME_STANDARD_FORMATE_STR, timezone = "GMT+8")
    @DateTimeFormat(pattern = DateTimeUtils.DATE_TIME_STANDARD_FORMATE_STR)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @TableField(typeHandler = LocalDateTimeTypeHandler.class)
    private LocalDateTime startTime;

}
